package com.ruitu.health_2.ui.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.ruitu.arad.base.BaseActivity;
import com.ruitu.health_2.R;

public class MsgActivity extends BaseActivity {
    private RelativeLayout rl_sys, rl_chat;// 系统消息,聊天消息

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_msg;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        rl_sys = findViewById(R.id.rl_sys);
        rl_chat = findViewById(R.id.rl_chat);

        setOnClickListener(rl_sys, rl_chat);

        setHeadTitle("消息");
    }

    @Override
    public void onClick(View v) {
        super.onClick(v);
        if (v == rl_chat) {// 聊天消息
            startActivity(ChatListActivity.class);
        }
    }
}
